<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
<head profile="http://purl.org/net/ns/metaprof">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="Content-Script-Type" content="text/javascript" />
	<meta name="generator" content="zenphoto" />
	<meta name="author" content="<?php printGalleryTitle(); ?>" />
	<?php printRSSHeaderLink('Gallery','Gallery RSS'); ?>
	<link rel="stylesheet" href="<?php echo $_zp_themeroot ?>/style.css" type="text/css" />
	<title><?php 
		printGalleryTitle(); 
		echo " | Search";
		?></title>
	<?php zenJavascript(); ?>
  <script src="<?php echo FULLWEBPATH . "/" . ZENFOLDER ?>/js/prototype.js" type="text/javascript"></script>
</head>

<body class="Index double">
<div id="header">
	<p class="siteName"><a href="<?php echo getGalleryIndexURL();?>" title="<?php echo gettext('Albums Index'); ?>"><?php echo getGalleryTitle();?></a></p>

		
</div>

<div id="content">
	<div id="main">
		<p class="topicPath"><?php printHomeLink('', ' &gt; '); ?> <a href="<?php echo getGalleryIndexURL();?>" title="Gallery Index"><?php echo getGalleryTitle();?></a> &gt; <span class="current"><?php echo "<em>Search</em>"; ?></span></p>


		<div class="section entry" id="index">
			<h1><?php echo "Search"; ?></h1>
			
			
			<div class="textBody">
				
				
				<!--Search表示↓-->
						<?php 
		if (!in_context(ZP_ALBUM)) {
			if (($total = getNumImages() + getNumAlbums()) > 0) {
				if ($_REQUEST['date']){
					$searchwords = getSearchDate();
	 		} else { $searchwords = getSearchWords(); }
				echo "<p>Total matches for <em>".$searchwords."</em>: $total</p>";
			}
		}
		$c = 0;
		?>
<div id="albums">
			<?php while (next_album()): $c++;?>
				<div class="album">
				<h3><a href="<?php echo getAlbumLinkURL();?>" title="View album: <?php echo getAlbumTitle();?>"><?php printAlbumTitle(); ?></a></h3>
					<div class="thumb">
					<a href="<?php echo getAlbumLinkURL();?>" title="View album: <?php echo getAlbumTitle();?>"><?php printAlbumThumbImage(getAlbumTitle()); ?></a>
					</div>
					<div class="albumdesc">
						<small><?php printAlbumDate("Date: "); ?></small>
						<p><?php printAlbumDesc(); ?></p>
						
					</div>
					<p style="clear: both; "></p>
				</div>
			<?php endwhile; ?>
			</div>
		
			<div id="images">
				<?php while (next_image(false, $firstPageImages)): $c++;?>
				<div class="image">
					<div class="imagethumb"><a href="<?php echo getImageLinkURL();?>" title="<?php echo getImageTitle();?>"><?php printImageThumb(getImageTitle()); ?></a></div>
				</div>
				<?php endwhile; ?>
			</div>
		<?php
			if ($c == 0) { 
				echo "<p>Sorry, no image matches. Try refining your search.</p>"; 
			}
			?> 

				<!--Search表示↑-->
				
				
				
			</div>

		</div>
		
		
			<ul class="flip pager" id="flip2">
		<?php if (hasPrevPage()) { ?>
						<li class="newer"><a href="<?php echo getPrevPageURL(); ?>" accesskey="x">&laquo; <?php echo gettext('prev page'); ?></a></li>
				<?php } ?>
				
				<?php if (hasNextPage()) { if (hasPrevPage()) { echo '&nbsp;'; } ?>
						<li class="older"><a href="<?php echo getNextPageURL(); ?>" accesskey="x"><?php echo gettext('next page'); ?> &raquo;</a></li>
				<?php } ?>
		</ul>
		
		
		<p class="topicPath"><?php printHomeLink('', ' &gt; '); ?> <a href="<?php echo getGalleryIndexURL();?>" title="Gallery Index"><?php echo getGalleryTitle();?></a> &gt; <span class="current"><?php echo "<em>Search</em>"; ?></span></p>
	</div><!-- end main-->

<div id="utilities">
	<dl class="navi">

		

		
		

		<dt>Archives</dt>
		<dd>
			<ul class="archive">
	<li><a href="?p=archive">Archive View</a></li>
			</ul>
		</dd>
		
	</dl>
	<!--end navi-->

	<dl class="others">
		<dt>Search</dt>
		<dd>
			<?php if (getOption('Allow_search')) {  printSearchForm(''); } ?>
		</dd>
		<dt>Feeds</dt>
		<dd>
			<ul class="feeds">
				<li><?php printRSSLink('Gallery','','RSS', ''); ?></li>
			</ul>
		</dd>
		<dt>Meta</dt>
		<dd>
			<ul class="meta">
				
<li><a href="<?php echo getGalleryIndexURL();?>zp-core/admin.php">サイト管理</a></li>	
			<li><?php printAdminLink('Admin', '', ''); ?></li>
			</ul>
		</dd>
	</dl>
	<!--end others-->
</div>
<!--end utilities-->

	<p class="return"><a href="#header">Return to page top</a></p>
</div><!--end content-->

<div id="footer">
	<ul class="support">
		<li>Powered by <a href="http://www.zenphoto.org" title="A simpler web photo album">ZenPhoto</a></li>
		<li class="template"><a href="http://vicuna.jp/">vicuna CMS</a> - <a href="http://blog.planting-field.com/items/zpv" title="1.01">ZPV.</a></li>
	</ul>
	<address>Copyright &copy; <?php printGalleryTitle(); ?> All Rights Reserved.</address>
</div>
	<?php printAdminToolbox(); ?>

</body>
</html>
